#!/bin/sh

exec java -server ${JAVA_OPTS} \
  -jar \
  -Duser.timezone=Asia/Shanghai \
  -Djava.security.egd=file:/dev/./urandom \
  -Dantrpc.elasticsearch.hosts=${ES_HOSTS} \
  -Dantrpc.elasticsearch.username=${ES_USERNAME} \
  -Dantrpc.elasticsearch.password=${ES_PASSWORD} \
  "${HOME}/app.jar" "$@"
